<template>
  <div>
      <button @click="fn()">逆传</button>
      {{this.zi}}
  </div>
</template>

<script>
export default {
    data(){
        return {
            zi:"我是子组件的数据"
        }
    },
    methods:{
        fn(){
            this.$emit("nichuan",this.zi)
        }
    }
}
</script>

<style scoped>
    div{
        width: 100%;
        height: .8rem;
    }
</style>